package com.yonyougov.devops.monitor.dao;

import com.yonyougov.devops.monitor.entity.Disk;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DiskRepository extends ElasticsearchRepository<Disk, Long> {

    List<Disk> findAllByHostnameAndDateBetweenOrderByDateAsc(String hostname, long startDate, long endData);
}
